﻿using System.Net.Http;
using System.Threading.Tasks;

namespace Ecobee.Net
{
	public interface IHttp
	{
		HttpClient ApiClient { get; }
		Task<ApiResult> Get(string address, bool allowTokenRefresh);
		Task<ApiResult> Post(string address, ApiObject content, bool allowTokenRefresh);
		void Cancel();
	}
}
